<style>
.modal_foto{
	display: none;
}

.clique_foto{
	cursor: pointer;
}

.clique_foto:HOVER{
	text-decoration: underline;
}

</style>

<div class="fotos form">
	<?php echo $this->Form->create('Foto', array('enctype' => 'multipart/form-data'));?>
	<fieldset>
		<legend><?php echo __('cadastro_fotos');?></legend>
	<?php
	//pr($anuncio);
	echo $this->Form->input('id_fotos');
	for($i=1;$i<=$anuncio['Pacote']['fotos']; $i++){
		echo $this->Form->input('foto'.$i, array('type'=>'file', 'label'=>__('foto').$i));
		if($this->data['Foto']['foto'.$i] != null){
			echo "<span class='clique_foto' id='clique_foto_$i'>".__('Clique para ver a foto atual')."</span><br>";
			echo $this->Html->image('/'.$this->data['Foto']['foto'.$i], array('height'=>'137px', 'id'=>'modal_foto'.$i, 'class'=>'modal_foto'));
		}
	}
	?>
	</fieldset>
<?php echo $this->Form->end(__('gravar'));?>
</div>